[INFO] cloning repository https://github.com/tradectl/rust-sdk
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tradectl/rust-sdk" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftradectl%2Frust-sdk", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftradectl%2Frust-sdk'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 176929c7b918b1a235a493d02ef3adc9f4915321
[INFO] fixing tradectl/rust-sdk against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftradectl%2Frust-sdk" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/tradectl/rust-sdk
[INFO] finished tweaking git repo https://github.com/tradectl/rust-sdk
[INFO] tweaked toml for git repo https://github.com/tradectl/rust-sdk written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/tradectl/rust-sdk on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/tradectl/rust-sdk already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 553a6f6ed9e6b810fa08f55c0110773cd4743541271d961baddf972d9ef1a7e8
[INFO] running `Command { std: "docker" "start" "553a6f6ed9e6b810fa08f55c0110773cd4743541271d961baddf972d9ef1a7e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "553a6f6ed9e6b810fa08f55c0110773cd4743541271d961baddf972d9ef1a7e8" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "553a6f6ed9e6b810fa08f55c0110773cd4743541271d961baddf972d9ef1a7e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "553a6f6ed9e6b810fa08f55c0110773cd4743541271d961baddf972d9ef1a7e8" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2021 edition to 2024
[INFO] [stderr]     Checking deranged v0.5.8
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking num-conv v0.2.0
[INFO] [stderr]     Checking time-core v0.1.8
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking symlink v0.1.0
[INFO] [stderr]     Checking serde_json v1.0.149
[INFO] [stderr]     Checking chrono v0.4.44
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking time v0.3.47
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling tokio-macros v2.6.1
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]     Checking tokio v1.50.0
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]     Checking tracing-subscriber v0.3.23
[INFO] [stderr]     Checking thiserror v2.0.18
[INFO] [stderr]     Checking tracing-appender v0.2.5
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]     Checking tradectl-sdk v0.1.14 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating src/lib.rs from 2021 edition to 2024
[INFO] [stderr]        Fixed src/runner.rs (4 fixes)
[INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/runner.rs:380:38
[INFO] [stdout]     |
[INFO] [stdout] 380 |         match prev_home { Some(v) => std::env::set_var("HOME", v), None => unsafe { std::env::remove_var("HOME") } }
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/newly-unsafe-functions.html>
[INFO] [stdout]     = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code
[INFO] [stdout]     |
[INFO] [stdout] 380 +         // FIXME: Audit that the environment access only happens in single-threaded code.
[INFO] [stdout] 381 ~         match prev_home { Some(v) => unsafe { std::env::set_var("HOME", v) }, None => unsafe { std::env::remove_var("HOME") } }
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]        Fixed src/strategy/mod.rs (5 fixes)
[INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/runner.rs:382:36
[INFO] [stdout]     |
[INFO] [stdout] 382 |         match prev_th { Some(v) => std::env::set_var("TRADECTL_HOME", v), None => unsafe { std::env::remove_var("TRADECTL_HOME") } }
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/newly-unsafe-functions.html>
[INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code
[INFO] [stdout]     |
[INFO] [stdout] 382 +         // FIXME: Audit that the environment access only happens in single-threaded code.
[INFO] [stdout] 383 ~         match prev_th { Some(v) => unsafe { std::env::set_var("TRADECTL_HOME", v) }, None => unsafe { std::env::remove_var("TRADECTL_HOME") } }
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.86s
[INFO] [stderr] crater-edition-check: tradectl-sdk v0.1.14 (/opt/rustwide/workdir) updating edition from 2021 to 2024
[INFO] [stderr]     Checking tradectl-sdk v0.1.14 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]    --> src/logging/janitor.rs:147:9
[INFO] [stdout]     |
[INFO] [stdout] 147 |     use std::io::Read as _;
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/runner.rs:380:38
[INFO] [stdout]     |
[INFO] [stdout] 380 |         match prev_home { Some(v) => std::env::set_var("HOME", v), None => unsafe { std::env::remove_var("HOME") } }
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/runner.rs:382:36
[INFO] [stdout]     |
[INFO] [stdout] 382 |         match prev_th { Some(v) => std::env::set_var("TRADECTL_HOME", v), None => unsafe { std::env::remove_var("TRADECTL_HOME") } }
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `tradectl-sdk` (lib test) due to 2 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "553a6f6ed9e6b810fa08f55c0110773cd4743541271d961baddf972d9ef1a7e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "553a6f6ed9e6b810fa08f55c0110773cd4743541271d961baddf972d9ef1a7e8", kill_on_drop: false }`
[INFO] [stdout] 553a6f6ed9e6b810fa08f55c0110773cd4743541271d961baddf972d9ef1a7e8
